# -*- conding:UTF-8 -*-

'''
@ Project: P7_lx1
@ File: migrate.py
@ Author: 罗婷
@ Date：2022/6/7 14:06
迁移脚本
'''
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

from main import app
from models import db
from models.user import *

manage = Manager(app)
migrate = Migrate(app, db)
manage.add_command('db', MigrateCommand)


if __name__ == '__main__':
    manage.run()

